const { defineConfig } = require('@vue/cli-service');

module.exports = defineConfig({
  transpileDependencies: true,
  // https://manga.bilibili.com/twirp/comic.v1.Comic/Banner?device=pc&platform=web
  devServer: {
    proxy: {
      '/bcomic': {
        target: 'https://apis.netstart.cn',
        ws: false,
        changeOrigin: true,
        //重写代理路径
        pathRewrite: {
          "^/bcomic": '/bcomic'
        }
      },
    }
  },
})
